package com.comm.dao;

import java.util.List;
import java.util.Map;

public interface BaseDAO {
    /**
     * 添加
     *
     * @param entity
     * @return
     */
    public Object insert(String sqlname, Object parameterObject);

    /**
     * 删除
     *
     * @param entity
     * @return
     */
    public Integer delete(String sqlName, Object parameterObject);

    /**
     * 修改
     *
     * @param entity
     * @return
     */
    public Integer update(String sqlName, Object parameterObject);

    /**
     * 查询
     *
     * @param entity
     * @return
     */
    //public Object select(String sqlName, Object parameterObject);
    public List<Object> select(String sqlName, Map<String, Object> paratemObject);

    public List<Object> select(String sqlName, Object parameterObject);

    /**
     * 查询单个
     *
     * @param entity
     * @return
     */
    public Object findBy(String sqlName, Map<String, Object> paratemObject);

    public Object findBy(String sqlName, Object parameterObject);

}
